package cc.wanforme.st.server.vo.base;

import java.io.Serializable;

import org.springframework.beans.BeanUtils;

import cc.wanforme.st.server.base.entity.Admin;

/**
 * <p>
 * 用户表（不实现评论和留言，但是保留）
 * </p>
 *
 * @author wanne
 * @since 2020-09-18
 */
public class AdminVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**昵称*/
    private String name;
    /**用户名*/
    private String username;
    /**类型, 01-博主, 02-访问用户*/
    private String type;
    /**邮箱*/
    private String email;
    /**状态*/
    private String status; 
    
    public AdminVo() {}
    
    public AdminVo(Admin po) {
    	BeanUtils.copyProperties(po, this);
    }
    
	public Long getId() {
		return id;
	}

    public void setId(Long id) {
		this.id = id;
	}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    
    public String getStatus() {
		return status;
	}
    
    public void setStatus(String status) {
		this.status = status;
	}
    
    @Override
    public String toString() {
        return "admin{" +
        "id=" + id +
        ", name=" + name +
        ", username=" + username +
        ", type=" + type +
        ", email=" + email +
        ", status=" + status +
        "}";
    }
}
